/*
 * @Author: 高富强
 * @Email: 875627570@qq.com
 * @Date: 2020-06-10 15:56:23
 * @Last Modified by: 高富强
 * @Last Modified time: 2020-06-11 09:56:23
 * @Description: 网络请教对象类，相当于BAL
 * ///请求示例
  // Future<Response> register({ @required String code, String city,}) {
  //   return _dio.post(
  //     '/user/email/register',
  //     queryParameters: {
  //       "code": code,
  //       "city": city,
  //     }
  //   );
  // }

  //调用示例
  //import 'package:flutter_code_framework/utils/global.dart';
  //var rs = await G.req.user.register(code:'',city:'');
 */


import 'package:dio/dio.dart';
import 'package:flutter_code_framework/utils/global.dart';
import 'package:flutter/foundation.dart';
/// 用户管理相关
class ReqBook {
  final Dio _dio;

  ReqBook(this._dio);
  Future<Response> getBookList({String schoolId,String periodId,String subjectId,String gradeId}) {
    return _dio.get('/common/getBookList',
        queryParameters: {
          "schoolId": schoolId,
          "periodId": periodId,
          "subjectId": subjectId,
          "gradeId":gradeId,
        }
    );
  }
}